package com.solotiger.okex.api;

import com.solotiger.okex.common.contants.UrlContants;
import com.solotiger.okex.common.result.Result;
import com.solotiger.okex.domain.FutureTicker;
import com.solotiger.okex.domain.FutureUserInfoResult;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

import java.util.Map;

/**
 * Author: Lin.Qiang
 * Date:2018/7/30 0030
 */
public interface OkexApi {

    /**
     * 获取OKEx合约行情数据
     *
     * @param symbol        btc_usd ltc_usd eth_usd etc_usd bch_usd
     * @param contract_type 合约类型: this_week:当周 next_week:下周 quarter:季度
     * @return
     */
    @GET(UrlContants.FUTURE_TICKER)
    Call<FutureTicker> futureTicker(@Query("symbol") String symbol, @Query("contract_type") String contract_type);

    /**
     * params
     *
     * @param params
     * @return
     */
    @POST(UrlContants.FUTURE_USERINFO)
    Call<FutureUserInfoResult> futureUserInfo(@QueryMap Map<String, String> params);
}
